<template>
    <div>
        <div class="acea-row row-middle input-box margin1">
            <img :src="leftIcon" alt="left-icon" class="left-icon">
            <input type="tel" placeholder="手机号码" v-model='mobile' class="input-tel">
        </div>
        <div class="acea-row row-middle input-box margin2">
            <img :src="leftIcon1" alt="left-icon" class="left-icon">
            <input type="number" placeholder="短信验证码" v-model='code' class="input-tel input-code">
            <div class="get-code">获取</div>
        </div>
        <Button text="立即绑定" color="#0DCDB5" class="bind-btn"/>
    </div>
</template>

<script>
    import { Button } from 'vant';
    const loadImg = name => require(`@/assets/images/${name}.png`)
    export default {
        name: "BindingMobile",
        components:{
          Button
        },
        data() {
            return {
                mobile: '',
                leftIcon: loadImg('mobile'),
                leftIcon1:loadImg('verify_code'),
                code:''
            }
        }
    }
</script>

<style scoped lang="scss">
    .input-box {
        width: 335px;
        height: 50px;
        background: rgba(255, 255, 255, 1);
        border-radius: 8px;
        margin-left: auto;
        margin-right: auto;

        .left-icon {
            width: 22px;
            height: 22px;
            margin-left: 18px;
            margin-right: 20px;
        }
        .input-tel{
            height: 30px;
            width: 70%;
        }
        .input-tel::-webkit-input-placeholder{
            color:#BCBFCE;
            font-size:16px;
            font-weight:400;
        }
        .input-tel::-moz-placeholder{   /* Mozilla Firefox 19+ */
            color:#BCBFCE;
            font-size:16px;
            font-weight:400;
        }
        .input-tel:-moz-placeholder{    /* Mozilla Firefox 4 to 18 */
            color:#BCBFCE;
            font-size:16px;
            font-weight:400;
        }
        .input-tel:-ms-input-placeholder{  /* Internet Explorer 10-11 */
            color:#BCBFCE;
            font-size:16px;
            font-weight:400;
        }
    }
    .margin1{
        margin-top: 40px;
    }
    .margin2{
        margin-top: 20px;
        .get-code{
            font-size:16px;
            font-weight:400;
            color:rgba(13,205,181,1);
            flex: 1;
            text-align: right;
            margin-right: 20px;
        }
        .input-code{
            width: 50%;
        }
    }
    .bind-btn{
        width:305px;
        height:50px;
        background:rgba(13,205,181,1);
        border-radius:6px;
        display: block;
        margin: 50px auto 0;
    }
</style>
